package com.fxsh.learn.lambda;

public class CheckPersonByAge implements CheckPerson{
    @Override
    public boolean test(Person p) {
        return p.getAge() > 18;
    }
}
